;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@WarPKBattle]
{
#IF
CheckJob  Warrior
#SAY
You want to enter the Warrior PVP Battle?\
1, You must enter between {FCOLOR/10}21:10 and 21:30{FCOLOR/12}\
_____Maximum Entrants - {FCOLOR/10}50{FCOLOR/12}.\
2, It costs {FCOLOR/10}5{FCOLOR/12} Million to join,\
_____winner takes all!\
3, You lose if you are killed, log or lag out.\
_____You cannot re-enter.\
4, You have to be level {FCOLOR/10}40{FCOLOR/12} to enter,\
_____you cannot use teleports or teleport spells.\
5, You will not incur PK Points, and you cannot lose any items\
6, You cannot use Roses, Respawn Scrolls, Rent Pets\
_____or wear a RevivalRing\
7, The NPC will check back after 10 Minutes,\
_____and then every 5 Minutes to see how many are left.\\
<[ Enter PK Battle ]/@Wargopkgzx>\
<[ Exit ]/@exit>\\
<[ GM Menu ]/@Wargmpkgg>\\\
#ELSESAY
You must be a Warrior to attend this PVP Session\
<[ Exit ]/@exit>\\\

[@Wargopkgzx]
#IF
!checklevel 40
#SAY
You need to be level 40\
<[ Exit ]/@exit>\\\
#ACT
break

#IF
checkitemw RedRose 1
or checkitem RedRose 1
or checkitemw CannibalFlower 1
or checkitem CannibalFlower 1
or checkitemw GreenRose 1
or checkitem GreenRose 1
or checkitemw Carnation 1
or checkitem Carnation 1
or checkitemw Bouquet 1
or checkitem Bouquet 1
or checkitemw LifeStar 1
or checkitem LifeStar 1
or checkitemw BloodTalisman 1
or checkitem BloodTalisman 1
or checkitemw AssasinRevival 1
or checkitem AssasinRevival 1
#SAY
You cannot take ANY Roses into this event!\
<[ Exit ]/@exit>
#ACT
break

#IF
checkitemw RevivalRing 1
or checkitem RevivalRing 1
#SAY
You cannot take a RevivalRing into this event!\
<[ Exit ]/@exit>
#ACT
break

#IF
checkitem RespawnScroll 1
#SAY
You cannot take a RespawnScroll into this event!\
<[ Exit ]/@exit>
#ACT
break

#IF
!checkmonRecall
#SAY
You cannot take pets into this map!  Try again!\
<[ Exit ]/@exit>
#ACT
Killslave
break

#IF
hour 21 21
min  09 30
#ACT
goto @atimeok
#ELSESAY
Event runs from 21:10-21:30\
<[ Exit ]/@exit>

[@Waratimeok]
#IF
checkhum PK1 50
#SAY
There is already 50 Players in this map\\
<[ Exit ]/@exit>
#ELSEACT
GOTO @PlayersOK

[@WarPlayersOK]
#IF
CheckGold 5000000
#ACT
loadvalue N1 "QuestDiary\System\PVPBattle\PVPBattleInfo.txt" Info Total
SetEventMap  "PK1"
Map PK1
INC N1 5
SAVEVALUE "QuestDiary\System\PVPBattle\PVPBattleInfo.txt" Info Total %N1
lineMsg [Grobal] "(*)Warrior PVP Battle Event to start at 21:30!"
goto @jinruok_1
#ELSESAY
You have insufficient Gold\
<[ Exit ]/@exit>

[@Warjinruok_1]
#IF
equal z12 0
#ACT
mov z12 1
goto @jinruok_2_time

[@Warjinruok_2_time]
#IF
hour 21 21
min  25 31
#ACT
goto @jinruok_2_10
break

#IF
hour 21 21
min  20 24
#ACT
goto @jinruok_2_15
break

#IF
hour 21 21
min  15 19
#ACT
goto @jinruok_2_20
break

#IF
hour 21 21
min  10 14
#ACT
goto @jinruok_2_25
break

[@Warjinruok_2_25]
#ACT
lineMsg [Grobal] "(*)You have 25 Minutes left before War PVP Battle commences - 21:30"
Delaygoto [Grobal] 1260 @jinruok_3_1

[@Warjinruok_2_20]
#ACT
lineMsg [Grobal] "(*)You have 20 Minutes left before War PVP Battle commences - 21:30"
Delaygoto [Grobal] 960 @jinruok_3_1

[@Warjinruok_2_15]
#ACT
lineMsg [Grobal] "(*)You have 15 Minutes left before War PVP Battle commences - 21:30"
Delaygoto [Grobal] 660 @jinruok_3_1

[@Warjinruok_2_10]
#ACT
lineMsg [Grobal] "(*)You have 10 Minutes left before War PVP Battle commences - 21:30"
Delaygoto [Grobal] 360 @jinruok_3_1

[@Warjinruok_3_1]
#ACT
lineMsg [Grobal] "(*)War PVP Battle Commences in 2 Minutes"
Eventmsg Grobal "...................................................War PVP Battle Commences in 2 Minutes" 187
Delaygoto [Grobal] 60 @jinruok_3_2

[@Warjinruok_3_2]
#ACT
lineMsg [Grobal] "(*)War PVP Battle Commences in 1 Minute!!!"
Eventmsg Grobal "...................................................War PVP Battle Commences in 1 Minute!!!" 187
Delaygoto [Grobal] 60 @jinruok_3ok

[@Warjinruok_3ok]
#ACT
ResetMapAttr "PK1"
SetEventMap  "PK1"
lineMsg [Grobal] "(*)War PVP Battle Has Started!  You won't go red and you can't drop!!!"
Eventmsg Grobal "...................................................War PVP Battle Has Started!  You won't go red and you can't drop!!!" 187
Delaygoto [Grobal] 600 @renshujiana

;--------------------------
[@Warrenshujiana]
#IF
checkhum PK1 2
#ACT
lineMsg [Grobal] "(*)Keep going Fighters!  Good Luck to you all!"
Eventmsg Grobal "...................................................Keep going Fighters!  Good Luck to you all!" 187
Delaygoto [Grobal] 300 @renshujiana
break
#ELSEACT
ChangeMapAttr  "PK1" "SAFE"
lineMsg [Grobal] "(*)Can the Last survivor visit the NPC to collect their prize!"
Eventmsg Grobal "...................................................Can the Last survivor visit the NPC to collect their prize!" 187
Delaygoto [Grobal] 60 @renshujiana

[@Wargmpkgg]
#IF
IsAdmin
#SAY
<[ Stop Competition ]/@Wargmpkgg_cs>\
<[ Main Menu ]/@WarPKBattle>
#ELSESAY
<[ Main Menu ]/@WarPKBattle>

[@Wargmpkgg_cs]
#IF
IsAdmin
#ACT
mov z12 0
#SAY
Competition Stopped!\
#ELSESAY
Sorry, you are not a GM!\

}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;